package cn.edu.sgu.www.mhxysy.service.prop.impl;

import cn.edu.sgu.www.mhxysy.entity.prop.ValueComparator;
import cn.edu.sgu.www.mhxysy.mapper.prop.ValueComparatorMapper;
import cn.edu.sgu.www.mhxysy.service.prop.ValueComparatorService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 沐雨橙风ιε
 * @version 1.0
 */
@Service
public class ValueComparatorServiceImpl implements ValueComparatorService {

    private final ValueComparatorMapper valueComparatorMapper;

    @Autowired
    public ValueComparatorServiceImpl(ValueComparatorMapper valueComparatorMapper) {
        this.valueComparatorMapper = valueComparatorMapper;
    }

    @Override
    public List<ValueComparator> selectAll() {
        return valueComparatorMapper.selectList(null);
    }

    @Override
    public ValueComparator selectById(Integer id) {
        return valueComparatorMapper.selectById(id);
    }

}